package com.xwb.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author 薛文博
 * @since 2021-06-01
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Instorage对象", description="")
public class Instorage implements Serializable {

    public Instorage(Integer productid, String productname, Integer price, Date instoragetime, Integer number, Integer providerid, Integer operatorid) {
        this.productid = productid;
        this.productname = productname;
        this.price = price;
        this.instoragetime = instoragetime;
        this.number = number;
        this.providerid = providerid;
        this.operatorid = operatorid;
    }

    @TableId(value = "inStorageId", type = IdType.AUTO)
    private Integer instorageid;

    @TableField("productId")
    private Integer productid;

    @TableField(fill = FieldFill.INSERT)
    private Date createtime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatetime;

    @TableField("productName")
    private String productname;

    @TableField("price")
    private Integer price;

    @TableField("inStorageTime")
    private Date instoragetime;

    private Integer number;

    @TableField("providerId")
    private Integer providerid;

    @TableField("operatorId")
    private Integer operatorid;


}
